import express from 'express'
import { hash } from '../libs/hash.js'
import { decrypt } from '../libs/decrypt.js'
import redis from '../db/cache.js'
import { v4 } from 'uuid'

const router = express.Router()

router.post('/testPOST',async (req,res)=>{
  const uuid = v4()
  console.log(new Date().toLocaleString())

  console.log(req.headers.authorization,1)

  console.log(await redis.get(req.headers.authorization))
  res.send(req.body)
})

export default router